package assignment;
public class UniqueString 
{
  public static void main(String[] args) 
  
	   {
		  String name[]={"I", "am", "in", "ca", "in", "sj"};
		  	  
		  for (int i=0;i<name.length;i++)
		  {
			  String temp=name[i];
			  int count=0;
			  for(int j=0;j<name.length;j++)
			  {
				  if(temp.equals(name[j]))
				  {
					  count++;
				  }
			  }  
				   if (count<=1)
			  {
				  System.out.println("The unique word is " +temp);
			  }    
				   else if(count>1)
				   {
					   System.out.println("The duplicate word is "+ temp);
				   }
			  }
		  }
}

	